const btn = document.querySelector('.btn')
const ul = document.querySelector('.box>ul')

btn.onclick = function (e) {
  e.stopPropagation()
  ul.style.opacity = 1
}
document.onclick = function () {
  ul.style.opacity = 0
}
